<template>
  数据列表的页面，根据 moduleID 加载需要的表单的 meta22 <br>
  <!--表单控件-->
  <my-grid
    :gridMeta="json.gridMeta"
    :itemMeta="json.itemMeta"
    v-bind="json.gridPros"
  />

</template>

<script lang="ts">
  import { defineComponent, onMounted, ref } from 'vue'
  // import type { DebuggerEvent, Component} from 'vue'
  import myGrid from './20-grid-comp.vue'
  import json from './grid.json'
 
  export default defineComponent({
    name: 'ui-core-grid-page',
    components: {
      myGrid
    },
    props: {
      moduleID: { // 模块ID
        type: [Number, String],
        default: 1 
      }
    },
    setup(props) {
      console.log('读取的 json：', json)

      const refGrid = ref(null)
      onMounted(() => {
        console.log('refGrid', refGrid.value)
      })
      return {
        json,
        props
      }
    }
  })

</script>